/*
 * @Author: zheguo 3188606474@qq.com
 * @Date: 2024-04-17 10:33:43
 * @LastEditors: zheguo 3188606474@qq.com
 * @LastEditTime: 2024-04-18 10:59:21
 * @FilePath: \ProjectAction\projectOne\myapp\src\store\imgComponent.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineStore } from 'pinia'
import { ref, reactive } from 'vue'
import axios from 'axios'

const useFuctionOne = defineStore('useFuctionOne', () => {

    const functionList = ref([])
    const getFucList = () => {
        axios.get("../json/xiaomiData.json").then(res => {
            // console.log(res.data.data[0].content)
            functionList.value = res.data.data
         
        })
    }
    return {
        functionList,
        getFucList
    }
})

export default useFuctionOne